import SwiftUI

@main
struct MinesweeperApp: App {
    @StateObject private var viewModel = GameViewModel()
    
    var body: some Scene {
        WindowGroup {
            GameView(viewModel: viewModel)
        }
        .windowResizability(.contentSize)  // 改回 .contentSize 以保持窗口大小与内容一致
    }
}
